package com.soccertgc.client
{
	public final class ClientStatus
	{
		
		public static const IDLE			= new ClientStatus("IDLE", 		1);
		public static const SENDING 		= new ClientStatus("SENDING", 	2);
		public static const RECEIVING 		= new ClientStatus("RECEIVING", 3);
		public static const POLLING 		= new ClientStatus("POLLING", 	4);
		
		// -------------------------------------------------------------------------------
		// STATIC
		// -------------------------------------------------------------------------------
		
		// Fields
		private static _init:Boolean = false;
		
		// Fake static constructor
		{
			_init = true;
		}
		
		// -------------------------------------------------------------------------------
		// PRIVATE
		// -------------------------------------------------------------------------------
		
		
		// Fields		
		private var _name:String;
		private var _value:uint;
			

		/**
		 * Fake private constructor, accessed only by class loader 1 time 
		 * @param name Client status name 
		 * @param value Client status value
		 */	
		public function ClientStatus(name:String, value:uint)
		{
			// Safe unique instance lock
			if (_init) throw new Error("ClientStatus enum already ccreated!");
			// Init
			_name:String;
			_value:uint;			
		}
		
		
	}
}